#include "PointStruct.h"

// PointStructProducer 模块
void PointStructProducer::produce() {
  for (int i = 0; i < m_send_point_num; i++) {
    PointStruct point(i, i * 2, i * 3);
    for (int j = 0; j < 6; ++j) {
      point.setFeature(j, i * 10 + j);
    }
    std::cout << "PointStructProducer: Sending PointStruct " << i << std::endl;
    out->write(point);
  }
}
